import 'package:auto_route/auto_route.dart';
import 'package:hovue/common/routers/names.dart';
import 'package:hovue/common/routers/pages.gr.dart';

@AutoRouterConfig()
class AppRouter extends RootStackRouter {
  @override
  List<AutoRoute> get routes => [
    AutoRoute(
      page: SplashRoute.page,
      path: RouteNames.splash,
      initial: false,
    ),
    AutoRoute(
      page: IntroductionRoute.page,
      path: RouteNames.introduction,
      initial: false,
    ),
    AutoRoute(
      page: MainRoute.page,
      path: RouteNames.main,
      initial: false,
    ),
    AutoRoute(
      page: CoverRoute.page,
      path: RouteNames.cover,
      initial: true,
    ),
    AutoRoute(
      page: LoginRoute.page,
      path: RouteNames.login,
      initial: false,
    ),
    AutoRoute(
      page: RegisterRoute.page,
      path: RouteNames.register,
      initial: false,
    ),
    // AutoRoute(
    //   page: HomePage.page,
    //   path: RouteNames.home,
    // ),
    // AutoRoute(
    //   page: FurnitureRoute.page,
    //   path: RouteNames.furniture,
    // ),
    // AutoRoute(
    //   page: CornerRoute.page,
    //   path: RouteNames.corner,
    // ),
    // AutoRoute(
    //   page: ProfileRoute.page,
    //   path: RouteNames.profile,
    // ),
  ];
}

// // 页面路由定义
// @RoutePage()
// class CoverPageRoute extends StatelessWidget {
//   const CoverPageRoute({Key? key}) : super(key: key);

//   @override
//   Widget build(BuildContext context) {
//     return const CoverPage();
//   }
// }

// @RoutePage()
// class LoginPageRoute extends StatelessWidget {
//   const LoginPageRoute({Key? key}) : super(key: key);

//   @override
//   Widget build(BuildContext context) {
//     return const LoginPage();
//   }
// }

// @RoutePage()
// class RegisterPageRoute extends StatelessWidget {
//   const RegisterPageRoute({Key? key}) : super(key: key);

//   @override
//   Widget build(BuildContext context) {
//     return const RegisterPage();
//   }
// }
